package com.hqj.controller;

import com.hqj.service.ZJServiceI;
import com.hqj.util.ReturnValueUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RequestMapping("/zjc")
@Controller
public class ZJController extends BaseController<Object> {

    @Resource(name="ZJServiceI")
    private ZJServiceI zsi;

    @Override
    public String index() {
        return "pages/zj/index";
    }

    @Override
    public String find(Object o) {
        List<Map<String,Object>> list = zsi.find();
        return ReturnValueUtil.findData(list.size(),list);
    }
}
